package com.znsd.entity;

import java.util.Date;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.io.Serializable;

/**
 * <p>
 * 用户帐户信息表
 * </p>
 *
 * @author Liuyl
 * @since 2019-10-16
 */
@TableName("user_details")
public class UserDetails extends Model<UserDetails> {

    private static final long serialVersionUID = 1L;

    /**
     * 编号
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    /**
     * 身份证编号
     */
    @TableField("id_card")
    private Long idCard;
    /**
     * 用户
     */
    @TableField("user_id")
    private Long userId;
    /**
     * 用户手机号
     */
    @TableField("user_phone")
    private String userPhone;
    /**
     * 用户籍贯
     */
    private String birthday;
    /**
     * 用户住址
     */
    @TableField("address_id")
    private Long addressId;
    /**
     * 0女1男
     */
    private String sex;
    /**
     * 创建时间
     */
    @TableField("create_time")
    private Date createTime;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getIdCard() {
        return idCard;
    }

    public void setIdCard(Long idCard) {
        this.idCard = idCard;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public String getUserPhone() {
        return userPhone;
    }

    public void setUserPhone(String userPhone) {
        this.userPhone = userPhone;
    }

    public String getHometown() {
        return birthday;
    }

    public void setHometown(String birthday) {
        this.birthday = birthday;
    }

    public Long getAddressId() {
        return addressId;
    }

    public void setAddressId(Long addressId) {
        this.addressId = addressId;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "UserDetails{" +
        "id=" + id +
        ", idCard=" + idCard +
        ", userId=" + userId +
        ", userPhone=" + userPhone +
        ", birthday=" + birthday +
        ", addressId=" + addressId +
        ", sex=" + sex +
        ", createTime=" + createTime +
        "}";
    }
}
